home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
1994.11.gz
/
1994.11
/
000126_root@astrohp1.ulb.ac.be_Sat Nov 19 06:39:04 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-11-30
|
3KB
Received: from resu1.ulb.ac.be by cs.umb.edu with SMTP id AA25315
(5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sat, 19 Nov 1994 06:39:04 -0500
Received: from astrohp1.ulb.ac.be by resu1.ulb.ac.be (8.6.8.1/2.18.ap)
id MAA07364; Sat, 19 Nov 1994 12:39:02 +0100
From: root@astrohp1.ulb.ac.be
Received: by astrohp1.ulb.ac.be (1.38.193.4/ULB.920908)
id AA04864; Sat, 19 Nov 1994 12:39:44 +0100
Message-Id: <9411191139.AA04864@astrohp1.ulb.ac.be>
Subject: Problem with yytext
To: tex-k@cs.umb.edu
Date: Sat, 19 Nov 94 12:39:44 MET
Cc: root@astrohp1.ulb.ac.be
Institut d'Astronomie et d'Astrophysique
CP-226, Universite Libre de Bruxelles
Campus de la Plaine, boulevard du triomphe
B-1050 Brussels
Phone: +32(2)650 3571 *** Fax: +32(2)650 4226
Mailer: Elm [revision: 70.85]
Installation of TeX on HP 730 with
OS : HP-UX 9.03
CC : cc (HP92453-01 A.09.69 HP C Compiler (ANSI C)
web2c-6.1 retrieved from ftp.tex.ac.uk
Compilation of <web2c/lex.yy.c> according to
cc -I./../lib -I../.. -g -Aa -D_HPUX_SOURCE -c lex.yy.c
leads to the following error:
conflicts: 1 shift/reduce
cc: "web2c.h", line 55: error 1584: Inconsistent type declaration: "yytext".
cc: "lex.yy.c", line 332: warning 604: Pointers are not assignment-compatible.
cc: "lex.yy.c", line 332: warning 563: Argument #2 is not the correct type.
Stop.
Stop.
Hereunder some information to help you locate the problem.
Guy Paulus
From <web2c/web2c.h>:
=====================
/* configure figures out how to declare the yytext variable. */
/* DECLARE_YYTEXT */
extern char *yytext; <----------------------------------------- line 55
/* extern char yytext[]; */
NOTES: 0) I have modified <web2c.h> according to <web2c.yytext.help>
(see below)
1) the SAME ERROR occurs if I select "extern char yytext[];"
2) with my C compiler, "char" is "signed" by default
From <web2c/lex.yy.c>:
======================
case 69:
{ (void) strcpy (last_id, yytext); <---------------------------- line 332
l_s = search_table (last_id);
return
last_tok = (l_s == -1 ? undef_id_tok : sym_table[l_s].typ);
}
break;
From <lib/c-auto.h>:
====================
/* Define as the proper declaration for yytext. */
/* #undef YYTEXT_POINTER */
#if YYTEXT_POINTER
#define DECLARE_YYTEXT extern char *yytext;
#else
#define DECLARE_YYTEXT extern char yytext[];
#endif
From <web2c.yytext.help>:
=========================
(retrieved from ftp.tex.ac.uk:tex-archive/systems/web2c/)
To: trotter@erdos.la.asu.edu
Subject: web2c lossage
In file included from web2c.lex:4:
web2c.h:54: conflicting types for `yytext'
lex.yy.c:524: previous declaration of `yytext'
Change the line that says `DECLARE_YYTEXT' (or something like that) in
web2c-6.1/web2c/web2c.h to either
extern char yytext[];
or
extern char *yytext;
whichever one works.